<%@ page contentType="text/html;charset=UTF-8" %>
<style>
    .tab_header{
        z-index: 2;
        color: #fff;
        background-color: #337ab7;
        border-color: #337ab7;
    }
    #borrow_info_tbody tr{
        margin-bottom: -1px;
        background-color: #fff;
        border: 1px solid #ddd;
    }
</style>
<div id="borrowed_div">
    <table id="borrows_tab" class="table table-hover table-bordered">
        <thead>
            <tr class="tab_header">
                <th>书名</th>
                <%--<th>ISBN</th>--%>
                <th>还书日期</th>
            </tr>
        </thead>
        <tbody id="borrow_info_tbody">
            <c:if test="${not empty borrows}">
                <c:forEach items="${borrows}" var="borrow">
                    <tr id="borrow_info_${borrow.zlId}">
                        <td>${borrow.bkBookinfo.bookname}</td>
                        <%--<td>${borrow.bkBookinfo.isbn}</td>--%>
                        <td class="date"><fmt:formatDate value="${borrow.needRtnDate}" pattern="yyyy-MM-dd"/></td>
                    </tr>
                </c:forEach>
            </c:if>
            <c:if test="${empty borrows}">
                <tr id="no_borrow_tbody">
                    <td colspan="2" align="center">没有借阅记录</td>
                </tr>
            </c:if>
        </tbody>
    </table>
</div>